package com.gopay.common.domain.dps;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.gopay.common.domain.BaseEntity;

@Entity
@Table(name = "WA_CUST_RIDDLE_RELATION")
public class WaCustRiddleRelation extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	private String relationId; 
	/**
	 * 谜题
	 */
	private String riddleAnswerId;
	/**
	 * 谜底
	 */
	private String custId;  
	/**
	 * 乐观锁版本号
	 */
	private Integer version;  
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 更新时间
	 */
	private Date updateTime;
	
	@Id
	@Column(name = "RELATION_ID")
	public String getRelationId() {
		return relationId;
	}
	public void setRelationId(String relationId) {
		this.relationId = relationId;
	}
	@Column(name = "CUST_ID")
	public String getCustId() {
		return custId;
	}
	public void setCustId(String custId) {
		this.custId = custId;
	}
	@Column(name = "RIDDLE_ANSWER_ID")
	public String getRiddleAnswerId() {
		return riddleAnswerId;
	}
	public void setRiddleAnswerId(String riddleAnswerId) {
		this.riddleAnswerId = riddleAnswerId;
	}
	
	@Column(name = "VERSION")
	public Integer getVersion() {
		return version;
	}
	public void setVersion(Integer version) {
		this.version = version;
	}
	@Column(name = "CREATE_TIME")
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@Column(name = "UPDATE_TIME")
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}    
}
